Optimal. Leaf size=49 \[ \frac{(a+x (b+c)) \log ^2(a+x (b+c))}{b+c}-\frac{2 (a+x (b+c)) \log (a+x (b+c))}{b+c}+2 x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0252992, antiderivative size = 49, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.364, Rules used = {2444, 2389, 2296, 2295} \[ \frac{(a+x (b+c)) \log ^2(a+x (b+c))}{b+c}-\frac{2 (a+x (b+c)) \log (a+x (b+c))}{b+c}+2 x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2444
Rule 2389
Rule 2296
Rule 2295
Rubi steps
\begin{align*} \int \log ^2(a+b x+c x) \, dx &=\int \log ^2(a+(b+c) x) \, dx\\ &=\frac{\operatorname{Subst}\left (\int \log ^2(x) \, dx,x,a+(b+c) x\right )}{b+c}\\ &=\frac{(a+(b+c) x) \log ^2(a+(b+c) x)}{b+c}-\frac{2 \operatorname{Subst}(\int \log (x) \, dx,x,a+(b+c) x)}{b+c}\\ &=2 x-\frac{2 (a+(b+c) x) \log (a+(b+c) x)}{b+c}+\frac{(a+(b+c) x) \log ^2(a+(b+c) x)}{b+c}\\ \end{align*}
Mathematica [A] time = 0.0062025, size = 48, normalized size = 0.98 \[ \frac{(a+x (b+c)) \log ^2(a+x (b+c))-2 (a+x (b+c)) \log (a+x (b+c))+2 x (b+c)}{b+c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.057, size = 131, normalized size = 2.7 \begin{align*}{\frac{ \left ( \ln \left ( a+ \left ( b+c \right ) x \right ) \right ) ^{2}xb}{b+c}}+{\frac{ \left ( \ln \left ( a+ \left ( b+c \right ) x \right ) \right ) ^{2}xc}{b+c}}+{\frac{ \left ( \ln \left ( a+ \left ( b+c \right ) x \right ) \right ) ^{2}a}{b+c}}-2\,{\frac{\ln \left ( a+ \left ( b+c \right ) x \right ) xb}{b+c}}-2\,{\frac{\ln \left ( a+ \left ( b+c \right ) x \right ) xc}{b+c}}-2\,{\frac{\ln \left ( a+ \left ( b+c \right ) x \right ) a}{b+c}}+2\,{\frac{bx}{b+c}}+2\,{\frac{cx}{b+c}}+2\,{\frac{a}{b+c}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.18191, size = 51, normalized size = 1.04 \begin{align*} \frac{{\left (b x + c x + a\right )}{\left (\log \left (b x + c x + a\right )^{2} - 2 \, \log \left (b x + c x + a\right ) + 2\right )}}{b + c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.91871, size = 136, normalized size = 2.78 \begin{align*} \frac{{\left ({\left (b + c\right )} x + a\right )} \log \left ({\left (b + c\right )} x + a\right )^{2} + 2 \,{\left (b + c\right )} x - 2 \,{\left ({\left (b + c\right )} x + a\right )} \log \left ({\left (b + c\right )} x + a\right )}{b + c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.501055, size = 63, normalized size = 1.29 \begin{align*} - 2 x \log{\left (a + b x + c x \right )} + \left (2 b + 2 c\right ) \left (- \frac{a \log{\left (a + x \left (b + c\right ) \right )}}{\left (b + c\right )^{2}} + \frac{x}{b + c}\right ) + \frac{\left (a + b x + c x\right ) \log{\left (a + b x + c x \right )}^{2}}{b + c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.21706, size = 88, normalized size = 1.8 \begin{align*} \frac{{\left (b x + c x + a\right )} \log \left (b x + c x + a\right )^{2}}{b + c} - \frac{2 \,{\left (b x + c x + a\right )} \log \left (b x + c x + a\right )}{b + c} + \frac{2 \,{\left (b x + c x + a\right )}}{b + c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]